/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ronin.common.dao;


import com.ronin.common.model.Rol;
import java.util.List;

/**
 *
 * @author esimsek
 */
public interface IRolDao {
    
    Rol getSingle(Rol rol);
    
    Rol getSingleById(Long id);
    
    Rol getSingleOneByNamedQuery(String namedQuery,Object... parameters);
    
    List<Rol> getList(Rol rol);
    
    List<Rol> getListByNamedQuery(String namedQuery,Object... parameters);
    
    int getCount(Rol rol);

    void add(Rol rol);

    void update(Rol rol);

    void delete(Rol rol);
}
